package com.fan.admin.service;


import com.fan.commons.pojo.ClaInfo;
import com.fan.commons.pojo.Course;
import com.fan.commons.pojo.CourseRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fan
 * @date 2021/3/9
 */
public interface CourseRelationService {

	int insertCourseRelation(CourseRelation courseRelation);

	int deleteRelationById(@Param("id") Integer id);

	int deleteCourseByCourseId(@Param("courseId") String courseId);

	int deleteRelationActive(CourseRelation courseRelation);

	List<CourseRelation> queryRelation(@Param("courseId") String courseId);

	List<ClaInfo> queryAllNoCla(@Param("courseId") String courseId);

	List<Course> queryStudentCourse(CourseRelation courseRelation);

	List<Course> queryStudentChooseCourse(@Param("studentId") String studentId);
}
